﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SeguradoraIA.Framework.Log;
using SeguradoraIA.Diagrama;
using SeguradoraIA.Class;

namespace SeguradoraIA.Forms
{
    public partial class PaginaModelo : PageBase
    {
        #region - Atributos -

        SeguradoraIAEntities ctx = new SeguradoraIAEntities();

        #endregion

        #region - Eventos -

        #region - Page_Load -
        protected void Page_Load(object sender, EventArgs e)
        {
            this.ConfiguraTela();
        }

        #endregion

        #region - Consultar -
        public override void Consultar()
        {
            try
            {
            }
            catch (Exception ex)
            {
                LogManager.LogException(ex);
                Response.Redirect("~/Forms/PaginaErro.aspx");
            }
        }
        #endregion

        #region - Incluir -
        public override void Incluir()
        {
            try
            {
                Response.Redirect("", false);
            }
            catch (Exception ex)
            {
                LogManager.LogException(ex);
                Response.Redirect("~/Forms/PaginaErro.aspx");
            }
        }
        #endregion


        #endregion

        #region - Metodos -

        #region - ConfiguraTela -
        private void ConfiguraTela()
        {
            this.ucBotoesPadrao.ExibeBotaoConsultar = true;
            this.ucBotoesPadrao.ExibeBotaoIncluir = true;
            this.ucBotoesPadrao.ExibirBotoes();
        }
        #endregion

        #endregion
    }
}